/*
 * Copyright (c) 2024. felord.cn
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *       https://www.apache.org/licenses/LICENSE-2.0
 * Website:
 *       https://felord.cn
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.felord.domain.webhook.card;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * The enum Horizontal content type.
 *
 * @author felord.cn
 * @since 2021/9/3 15:16
 */
public enum HorizontalContentType {
    /**
     * 或不填代表不是链接
     */
    TEXT(0),
    /**
     * 跳转url
     */
    URL(1),
    /**
     * 下载附件
     */
    ATTACHMENT(2),
    /**
     * 代表点击跳转成员详情
     */
    AT_STAFF(3);

    private final int type;

    HorizontalContentType(int type) {
        this.type = type;
    }

    /**
     * Gets type.
     *
     * @return the type
     */
    @JsonValue
    public int getType() {
        return type;
    }
}
